#define _CRT_SECURE_NO_WARNINGS 1
#include"beginner_vector.h"
namespace dzh
{
	void test1()
	{
		vector<int> v(10, 1);
		print(v);//1 1 1 1 1 1 1 1 1 1\n
		cout << v[0] << endl;//1\n
		vector<int> v1(v);
		print(v1);//1 1 1 1 1 1 1 1 1 1\n
		v1.resize(12, 2);
		print(v1);//1 1 1 1 1 1 1 1 1 1 2 2\n
		v1.push_back(1);
		print(v1);
	}
	void test2()
	{
		vector<string> vs(3, "111111111");
		print(vs);
		vs.insert(vs.begin(), "222222222");
		print(vs);
		vs.erase(vs.begin() + 1);
		print(vs);
	}
}
